//
//  QXRenWuTableViewCell.m
//  qiJi
//
//  Created by 凤利史 on 2018/3/27.
//  Copyright © 2018年 sunrose. All rights reserved.
//

#import "QXRenWuTableViewCell.h"

@implementation QXRenWuTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:@"identifier"]) {
        
        [self creationView];
        
        
        
    }
    
    return self;
}
- (void)creationView{
    
    //图片
    _imgView = [[UIImageView alloc] init];

    [self addSubview:_imgView];
    _imgView.backgroundColor = [UIColor orangeColor];
    [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).with.offset(25*CHANGE_SIZE);
        make.right.equalTo(self).with.offset(-25*CHANGE_SIZE);
        make.top.equalTo(self).with.offset(15*CHANGE_SIZE);
        make.bottom.equalTo(self);
    }];
    self.titleLabel = [[UILabel alloc] init];
    [self addSubview:self.titleLabel];
    self.titleLabel.text = @"坚持打卡签到赚积分，满7天即可获取10积分   点击领取任务。";
    self.titleLabel.font = [UIFont fontWithName:@"DINEngschrift LT Alternate" size:14*CHANGE_SIZE];
    
    self.titleLabel.textColor = [UIColor colorWithRed:255/255 green:255/255 blue:255/255 alpha:1];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).with.offset(40*CHANGE_SIZE);
        make.right.equalTo(self).with.offset(-40*CHANGE_SIZE);
        make.bottom.equalTo(_imgView.mas_bottom).with.offset(-15);
        
    }];
    self.titleLabel.numberOfLines = 2;
    
    
    
    

    
    
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
